import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description: 输出n*n的乘法口诀表，n由用户输入。
 * User: 15085202591
 * Date: 2022-10-31
 * Time: 22:31
 */
public class MulList {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        for (int i = 1; i <=n ; i++) {
            for (int j = 1; j <=i ; j++) {
                System.out.print(j + "*" + i + "=" + i*j + " ");
            }
            System.out.println();
        }
        sc.close();
    }
}
